<!--
 * @Author: anshengtyp
 * @Date: 2024-02-27 08:37:44
 * @LastEditTime: 2024-04-07 16:51:26
 * @LastEditors: anshengtyp
 * @Description: 位置操作
-->

<template>
  <div class="position">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px">
      <el-form-item label="大地2000坐标点-度" prop="longitude">
        <el-input v-model="ruleForm.longitude" placeholder="请输入" clearable></el-input>
      </el-form-item>

      <el-form-item label="高程" prop="elevation">
        <el-input v-model="ruleForm.elevation" placeholder="请输入" clearable></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: ['newData'],
  data() {
    return {
      ruleForm: {},
    };
  },

  created() {

  },
  watch: {
    newData: {
      handler(val) {
        if (val) {
          this.ruleForm.longitude = val.longitude;
          this.ruleForm.elevation = val.elevation;
        }
      }
    },
    ruleForm: {
      deep: true,
      handler(val) {
        this.$emit('getChildernData', val);
      }
    }
  },
  methods: {

  },
};
</script>

<style lang="scss" scoped>
.position {
  padding: 20px 0;
}
</style>
